﻿using SqlSugar;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Model.Models
{
    /// <summary>
    /// 聊天信息
    /// </summary>
    [SugarTable("sys_OnLineMsg")]
    public class OnLineMsg : BaseDBModel
    {
        /// <summary>
        /// 用户1
        /// </summary>
        [StringLength(100)]
        [Description("用户1")]
        public string User1 { get; set; } = "";

        /// <summary>
        /// 用户1
        /// </summary>
        [StringLength(100)]
        [Description("用户2")]
        public string User2 { get; set; } = "";

        /// <summary>
        /// 聊天信息
        /// </summary>
        [StringLength(4000)]
        [Description("聊天信息")]
        public string Msg { get; set; } = "";

        /// <summary>
        /// 1未读 2 已读
        /// </summary>
        [Description("1未读 2 已读")]
        public int State { get; set; }

    }
}
